import 'dart:io';

import 'package:flutter/material.dart';

class jingxuanItem01 extends StatelessWidget {
  const jingxuanItem01({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      // height: 200,
      width: 170,
      margin: EdgeInsets.only(right: 10),

      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        mainAxisAlignment: MainAxisAlignment.spaceBetween,
        children: [
          Stack(
            children: [
              Container(
                height: 215,
              ),
              Container(
                height: 200,
                child: ClipRRect(
                  borderRadius: BorderRadius.circular((10)),
                  child: Image(
                      fit: BoxFit.cover,
                      image: NetworkImage(
                          'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fnimg.ws.126.net%2F%3Furl%3Dhttp%253A%252F%252Fdingyue.ws.126.net%252F2021%252F1105%252F47a211f5j00r22x35001pc000hs00hsc.jpg%26thumbnail%3D650x2147483647%26quality%3D80%26type%3Djpg&refer=http%3A%2F%2Fnimg.ws.126.net&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1650777026&t=395a6181b8a6b3a301e37bca7e1ad347')),
                ),
              ),
              Positioned(
                  bottom: 0,
                  child: Container(
                    padding: EdgeInsets.symmetric(horizontal: 15),
                    height: 30,
                    decoration: BoxDecoration(
                        color: Color(0xff99a7b7),
                        borderRadius: BorderRadius.circular(15)),
                    child: Row(
                      children: [
                        Icon(
                          Icons.lock_clock,
                          color: Colors.white,
                          size: 20,
                        ),
                        Container(
                          margin: EdgeInsets.only(left: 5),
                          child: Text(
                            '立即预约',
                            style: TextStyle(color: Colors.white, fontSize: 13),
                          ),
                        )
                      ],
                    ),
                  ))
            ],
          ),
          Container(
            child: Column(
              crossAxisAlignment: CrossAxisAlignment.start,
              children: [
                Container(
                  margin: EdgeInsets.only(bottom: 5),
                  child: Text(
                    'Nono陈童言直播见面会',
                    style: TextStyle(fontSize: 16, fontWeight: FontWeight.w600),
                    maxLines: 1,
                    overflow: TextOverflow.ellipsis,
                  ),
                ),
                Text(
                  '今日 19:00',
                  style: TextStyle(fontSize: 12, fontWeight: FontWeight.w600),
                )
              ],
            ),
          )
        ],
      ),
    );
  }
}
